﻿<%@ Page Title="Board Leaders In Posted Recipes Comments - Traditional Maltese Cuisine" Language="C#" MasterPageFile="~/MainMasterPage.Master" AutoEventWireup="true" CodeBehind="BoardLeadersInPostedRecipesComments.aspx.cs" Inherits="TraditionalMalteseCuisine.BoardLeadersInPostedRecipesComments" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
    <asp:UpdatePanel ID="updtLeadersPanel" runat="server">
        <ContentTemplate>
            <div id="control_wrapper" style="width: 65%;">
                <div class="title">Top <asp:DropDownList ID="cmbMaxRecords" runat="server" CssClass="combobox" Width="40px" AutoPostBack="True" OnSelectedIndexChanged="cmbMaxRecords_SelectedIndexChanged">
                    <asp:ListItem>5</asp:ListItem>
                    <asp:ListItem>10</asp:ListItem>
                    <asp:ListItem>15</asp:ListItem>
                    <asp:ListItem>20</asp:ListItem>
                    <asp:ListItem>50</asp:ListItem>
                    <asp:ListItem>100</asp:ListItem>
                    </asp:DropDownList> Contributors In Posting Comments</div>
                <br />
                <asp:Repeater ID="rptLeaders" runat="server">
                    <HeaderTemplate><div id="leader_board_listing"></HeaderTemplate>
                    <ItemTemplate>
                        <a href='<%# string.Format("profile.aspx?user={0}", Eval("member_id")) %>'>
                            <div id="leader_board_row">
                                <div id="leader_board_awards"><%# string.Format("{0}", GetContributionLevel(int.Parse(Eval("member_id").ToString()))) %></div>
                                <div id="leader_board_user_info">
                                    <div style="float: left;"><img src='<%# Eval("avatar").ToString() %>' alt="Click to visit profile..." class="profile_thumbnail_image" /></div>
                                    <div style="padding-left: 5px; float: left;">
                                        <%# string.Format("{0} {1}", Eval("firstname"), Eval("lastname")) %><br />
                                        <a href='mailto:<%# string.Format("{0}", Eval("email")) %>' style="text-decoration: underline; font-size: 11px;"><%# string.Format("{0}", Eval("email")) %></a>
                                    </div>
                                    <div style="float: right;">
                                        <b><%# string.Format("{0}", Eval("totalrecipescommentsposted")) %> comment(s) posted . . .</b>
                                    </div>
                                </div>
                            </div>
                        </a>
                    </ItemTemplate>
                    <FooterTemplate></div></FooterTemplate>
                </asp:Repeater>
                <br />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
